import 'package:flutter/material.dart';
import 'package:x3_component_core/components/button_components/base_close_button.dart';

class BottomSheetHead extends StatelessWidget {
  final String hit;

  const BottomSheetHead({Key key, @required this.hit}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return Container(
      color: Colors.white,
      margin: EdgeInsets.symmetric(vertical: 4),
      height: 40,
      child: Row(
        mainAxisAlignment: MainAxisAlignment.spaceBetween,
        children: [
          hit != null ? Text(hit, style: Theme.of(context).textTheme.bodyText2.copyWith(fontSize: 14)) : SizedBox(),
          BaseCloseButton(onPress: () => {Navigator.of(context, rootNavigator: true).pop()}),
        ],
      ),
    );
  }
}
